package com.andy.controller;

import com.andy.service.impl.YoubusService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/YB")
public class YBAutoController {

    @Autowired
    private YoubusService youbusService;

    @RequestMapping("/youbusActionClass")
    public String createYoubusActionClass(String input){
        String result = youbusService.createYoubusActionClass(input);
        return result;
    }

    @RequestMapping("/youbusPo")
    public String createYoubusPOClass(String input){
        String result = youbusService.createSqlPO(input);
        return result;
    }

}
